(function() {
    var getScriptArgs = function() {
        var scripts = document.getElementsByTagName("script");
        var script = scripts[scripts.length - 1],
            src = script.src,
            reg = /(?:\?|&)(.*?)=(.*?)(?=&|$)/g,
            temp, res = {};
        while ((temp = reg.exec(src)) != null) res[temp[1]] = decodeURIComponent(temp[2]);
        return res;
    };
    var args = getScriptArgs();
    var linkLiArr = [],
        num = args.num;
    if (!num || num <= 0) {
        num = "20";
    }
    var linkLi = '<li class="num1"><a title="学习贯彻十九大精神"  href="/i/141" target="_blank"  tabindex="-1"> <img src="/mongo/5b45c653b760a9b220a542c9.jpg"  width="209"   height="61"  border="0" alt="学习贯彻十九大精神">    <span class="img_title img-title">学习贯彻十九大精神</span> </a> </li>';
    linkLiArr.push(linkLi);
    var linkLi = '<li class="num2"><a title="2+2清单"  href="/i/133" target="_blank"  tabindex="-1"> <img src="/mongo/5b0ceeabb760f34c5e685d7e.jpg"  width="209"   height="61"  border="0" alt="2+2清单">    <span class="img_title img-title">2+2清单</span> </a> </li>';
    linkLiArr.push(linkLi);
    var linkLi = '<li class="num3"><a title="安徽省减轻 企业负担综合平台"  href="http://www.aheic.gov.cn/qyjfpt/index.jsp" target="_blank"  tabindex="-1"> <img src="/mongo/5b0ceea0b760f34c5e685d7c.jpg"  width="209"   height="61"  border="0" alt="安徽省减轻 企业负担综合平台">    <span class="img_title img-title">安徽省减轻 企业负担综合平台</span> </a> </li>';
    linkLiArr.push(linkLi);
    var linkLi = '<li class="num4"><a title="部门预决算"  href="http://gk.ahsz.gov.cn/public/column/2655577?type=4&catId=4701411&action=list" target="_blank"  tabindex="-1"> <img src="/mongo/5b0cee86b760f34c5e685d78.jpg"  width="209"   height="61"  border="0" alt="部门预决算">    <span class="img_title img-title">部门预决算</span> </a> </li>';
    linkLiArr.push(linkLi);
    var linkLi = '<li class="num5"><a title="信用信息双公示"  href="javascript:void(0)" style="cursor: default;"  tabindex="-1"> <img src="/mongo/5b0cee77b760f34c5e685d76.jpg"  width="209"   height="61"  border="0" alt="信用信息双公示">    <span class="img_title img-title">信用信息双公示</span> </a> </li>';
    linkLiArr.push(linkLi);
    var printContent = function() {
        var length = linkLiArr.length;
        if (num > length) {
            num = length;
        }
        if (linkLiArr.length > 0) {
            for (var i = 0; i < num; i++) {
                document.write(linkLiArr[i]);
            }
        }
    }();
})()